home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
progs
/
editor
/
frexxed
/
fpl
/
killnotify.fpl
< prev
next >
Wrap
Text File
|
1995-07-18
|
613b
|
20 lines
int export KilledNotify_hook(int ID)
{
int countdown = ReadInfo("_iconify_when_quit_countdown", ID);
string port = ReadInfo("_notifyport", ID);
if(strlen(port)) {
ARexxSend(port, "!");
}
if (countdown > 0 && ReadInfo("_iconify_when_quit",ID)) {
SetInfo(ID, "_iconify_when_quit_countdown", countdown-1);
if (countdown == 1) {
Iconify();
}
}
}
ConstructInfo("_notifyport", "", "", "HLS", "", 0, 0);
ConstructInfo("_iconify_when_quit", "", "", "HLB", "", 0, 0);
ConstructInfo("_iconify_when_quit_countdown", "", "", "HGI", "", 0, 9999, 0);
Hook("BufferKill", "KilledNotify_hook");